﻿using System;
using System.Linq;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Medianamik.Core;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Globalization;

namespace Medianamik.UI.Controls
{
    /// <summary>
    /// TextBox de type "password"
    /// </summary>
    public class PasswordTextBox : SingleLineTextBox, IMedianamikControl
    {
        public PasswordTextBox()
        {
            Mode = TextBoxMode.Password;
            IsMultiLingual = false;
        }

        protected override void  CreateControlHierarchy(bool pUseDataSource)
        {
            base.CreateControlHierarchy(pUseDataSource);
            if(!Page.IsPostBack) 
                _textbox.Attributes.Add("value", _textbox.Text);
        }
    }
}
